package com.douqu.game.core.config;

import com.douqu.game.core.e.E_Attribute;
import com.douqu.game.core.entity.GameObject;
import com.douqu.game.core.util.LogUtils;

/**
 * Created by bean on 2017/8/9.
 */
public class AttributeConfig extends GameObject {

    @Override
    public boolean check()
    {
        boolean result = E_Attribute.checkInit(this);
        if(!result)
        {
            LogUtils.error("Load Attribute init Error -> " + this);
            return false;
        }

        LogUtils.info(name + " -> " + E_Attribute.forNumber(id));
        return true;
    }


    @Override
    public String toString() {
        return "{remark= " + remark + " }-" + super.toString();
    }
}
